/**
 * 
 */
package com.bitBusy.manageyourriches.application;

import android.content.Context;

/**
 * Class to maintain same DB instance across app
 * @author SumaHarsha
 *
 */
public class DBInstanceStore{

	/** Reference to the contex with which DB was referenced*/
	private static Context myDBContext;
	
	/** Private constructor - Singleton*/
	
	private DBInstanceStore()
	{
		
	}
	
	/** Method to get DB instance context
	 * @param current context
	 * @return the db instance context*/
	public static Context getDBInstanceContext(Context the_currentContext) {
		if (myDBContext == null)
		{
			myDBContext = the_currentContext;
		}
        return myDBContext;
}	
	
}
